package com.easyplan.planningresultreciver.domain;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class PlannedTask {

    private static final String dtFormat = "yyyy-MM-dd HH:mm:ss";

    /**
     * MO的Process被展开成Job后的JobID
     * 若是Project规划的场景，也是生成用于规划的Job的ID
     */
    @JSONField(ordinal = 1)
    private long taskId;


    /**
     * 开始时间
     */
    @JSONField(ordinal = 2, format = dtFormat)
    private Date startTime;

    /**
     * 结束时间
     */
    @JSONField(ordinal = 3, format = dtFormat)
    private Date endTime;

    /**
     * 当前任务所占用的资源需求组(ResourceRequirementGroup - RRG)的ID,通过该ID，可以从资源管理数据中得知对应的资源及其使用量
     */
    @JSONField(ordinal = 4)
    private long rrgId;


    public long getTaskId() {
        return taskId;
    }

    public void setTaskId(long taskId) {
        this.taskId = taskId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public long getRrgId() {
        return rrgId;
    }

    public void setRrgId(long rrgId) {
        this.rrgId = rrgId;
    }

}
